package com.tool.knife4j.controller;

import com.tool.knife4j.dto.TestDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2024/1/22 16:37
 */
@RestController
@RequestMapping("/api")
@Api(tags = "用在类上，例如Controller，表示对类的说明")
public class TestController {
    @PostMapping
    @ApiOperation("用在方法上，例如Controller的方法，说明方法的用途、作用")
    public void testKnife4j(@RequestBody TestDto testDto) {
        return;
    }
}
